package com.comet.mapper;

import com.comet.domain.Order;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface OrderMapper {

    @Select("select * from video_order where id = #{videoId}")
    Order findOrderById(int id);

    @Insert("insert into t_order(user_id,course_id, course_name, course_desc, price, logo_url, create_time,remark)  values(#{userId},#{courseId},#{courseName},#{courseDesc},#{price},#{logoUrl},#{createTime},#{remark})")
    int createOrder(Order order);
}
